package com.cradom.event.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cradom.event.model.Event;

public interface EventDao {
	public List<Event> getEvent();
	public Event getEventDetail(String id);
	public Integer getNewEventCount();
	public Integer getEventNoFinishCount();
	public Integer getEventFinishByIDCount(String police_id);
	public Integer getEventNoFinishByIDCount(String police_id);
	public List<Event> getNewEvent();
	public List<Event> getEventByPhone(String phone);
	public Boolean setPoliceID(@Param("police_id")String police_id,@Param("event_id")String event_id,@Param(value="police_id_time")Date police_id_time);
	public List<Event> getEventNoStartByPhone(String phone);
	public Boolean setStartTime(@Param("event_id")String event_id,@Param(value="police_start_time")Date police_start_time);
	public Event getEventByID(String id);
	public Boolean updateEvent(Event event);
	public Boolean setFinishTime(@Param("event_id")String event_id,@Param(value="finish_time")Date finish_time);
	public List<Event> findEventByChildrenName(String name);
}
